package com.newtouch.xcd.cms.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 利益分配表
 * </p>
 *
 * @author dongyuefeng
 * @since 2020-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("5k_benefit")
@ApiModel(value="Benefit对象", description="利益分配表")
public class Benefit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "benefit_id", type = IdType.AUTO)
    private Integer benefitId;

    @ApiModelProperty(value = "利益分配名称")
    @TableField("interest_name")
    private String interestName;

    @ApiModelProperty(value = "首次总签约规模")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "累计缴付金额")
    @TableField("pay_amount")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "分配条件成就日")
    @TableField("fptjcjr")
    private String fptjcjr;

    @ApiModelProperty(value = "投入情况")
    @TableField("situation")
    private String situation;

    @ApiModelProperty(value = "关联客户ID")
    @TableField("customer_id")
    private Integer customerId;

    @ApiModelProperty(value = "关联合同ID")
    @TableField("contract_id")
    private Integer contractId;

    @ApiModelProperty(value = "创建者ID")
    @TableField("creator_role_id")
    private Integer creatorRoleId;

    @ApiModelProperty(value = "所有者岗位")
    @TableField("owner_role_id")
    private Integer ownerRoleId;

    @ApiModelProperty(value = "建立时间")
    @TableField("create_time")
    private Integer createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Integer updateTime;

    @ApiModelProperty(value = "status删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "1、审批中 2、通过 3、拒绝")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "审核人")
    @TableField("examine_role_id")
    private Integer examineRoleId;

    @ApiModelProperty(value = "排序")
    @TableField("order_id")
    private Integer orderId;


}
